package day240607.hw;

import java.time.LocalDate;

public class Content {
    private String title;
    private String text;        // 内容
    private String url;         // 链接
    private LocalDate date;     // 发布日期
    public Content(String text, String url, LocalDate date) {
        this.text = text;
        this.url = url;
        this.date = date;
    }

    @Override
    public String toString() {
        return text + "\n" + url + "\n" + date + "\n";
    }
    public String getTitle() {
        return title;
    }
    public String getText() {
        return text;
    }

    public String getUrl() {
        return url;
    }

    public LocalDate getDate() {
        return date;
    }
}
